package com.wenxixuanwu.fruitstore.mapper;

import com.wenxixuanwu.fruitstore.entity.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserMapper {
    int insert(User user);

    User getById(int id);

    User getByUserName(String name);

    int updateCenter(@Param("username") String username, @Param("nick") String nick, @Param("sex") String sex, @Param("address") String address, @Param("phone") String phone, @Param("id") int id);

    int updatePassword(@Param("password") String password,@Param("id") int id);


}

